<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:90:"D:\Develop\phpStudy\PHPTutorial\WWW\hhyy-game/application/api\view\shopping\orderlist.html";i:1557664001;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <script type="text/javascript" src="../../public/static/api/activity/js/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <title>积分商城</title>
    <style>
        .shop-container{
            background-color: #E4C896;
            width:100%;
        }
        .shop-top{height:40px;border-bottom: 1px solid #9F6B30;display: flex;justify-content:space-between;color: #9F6B30;}
        .shop-top-1{display:flex;}
        .shop-top-1 span{font-size:16px;line-height: 40px;margin-left:10px;font-weight: bold;}
        .shop-top-1 div{font-size:16px;width:60px;background-color: #9F6B30;color:#FFFFFF;height:20px;border-radius: 8px;margin-top:10px;margin-left:10px;text-align: center;}
        .my-orders{margin-right:20px;}
        .shop-product-list{width: 100%;display: flex;margin-top:3%;margin-left:2%;border-bottom: 1px solid #9F6B30;padding-bottom: 5px;}
        .product-item-img{background-repeat:no-repeat;background-position:center;background-size: 100% 100%;background-color: #DFB673;height:90px;}
        .product-item-top{border-radius:5px;border:2px solid #FFE08B;color: #9F6B30;width:100px;text-align: center;height:130px;}
        .shuliang{width:100px;padding-top:30px;padding-left:30px;color:#9F6B30}
        .biaodan{width:400px;color:#9F6B30;}
        .biaodan div{margin-top:5px;}
    </style>
</head>
<body>
    <div class="shop-container">
        <div class="shop-top">
            <div class="shop-top-1">
                <span>我的积分</span>
                <div><?php echo $coin['coin']; ?></div>
            </div>
            <div class="shop-top-1">
                <span class="my-orders" onclick="goto('orderlist')">我的订单</span>
            </div>
        </div>
        <?php if(is_array($shop_record) || $shop_record instanceof \think\Collection || $shop_record instanceof \think\Paginator): $i = 0; $__LIST__ = $shop_record;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
        <div class="shop-product-list">
            <div class="product-item-top">
                <div class="product-item-img" style="background-image: url('<?php echo $val['img_path']; ?>');"></div>
                <span>(<?php echo $val['shop_name']; ?>)</span><br/>
                <span><?php echo $val['coin']; ?>积分</span>
            </div>
            <div class="shuliang">
               数量<br/>
                &nbsp;&nbsp;1
            </div>
            <div class="biaodan">
                <div>
                    姓名：<?php echo $val['RealName']; ?>
                </div>
                <div>
                    手机：<?php echo $val['MobilePhone']; ?>
                </div>
                <div>
                    地址：<?php echo $val['address']; ?>
                </div>
                <div style="margin-left:-28px;">
                    订单时间：<?php echo $val['endTime']; ?>
                </div>
            </div>
        </div>
        <?php endforeach; endif; else: echo "$empty" ;endif; ?>

    </div>
<script>
    function goto(url){
        window.location.href=url;
    }
</script>
</body>
</html>